﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"  AutoEventWireup="true" CodeFile="History.aspx.cs" Inherits="SubmitLeave_History" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div>
        <span lang="EN-US" style="font-size: 10pt; font-family: Arial; mso-fareast-font-family: 宋体;
            mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN;
            mso-bidi-language: HE"><span lang="EN-US" style="font-size: 10pt; font-family: Arial;
                mso-fareast-font-family: 宋体; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US;
                mso-fareast-language: ZH-CN; mso-bidi-language: HE">
                <table  align="center" style="width: 507px">
                    <tr>
                        <td colspan="3" rowspan="2" style="height: 14px">
                            &nbsp;开始时间：<asp:TextBox ID="txtStartTime" runat="server"></asp:TextBox>（如2007-01-02）
                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
                            &nbsp; 结束时间：<asp:TextBox ID="txtEndTime" runat="server"></asp:TextBox>
                            </td>
                    </tr>
                    <tr>
                    </tr>
                    <tr>
                        <td align="center" colspan="3" style="height: 26px">
                            &nbsp;<asp:Button ID="btnSearch" runat="server" Text="搜索" OnClick="btnSearch_Click" /></td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            &nbsp;<asp:Panel ID="Panel2" runat="server" Height="50px" Width="503px" Visible="False">
                                审批者：<asp:Label ID="agreeName" runat="server" Height="23px" Width="63px"></asp:Label><br />
                                请假理由：<asp:Label ID="qryReason" runat="server" Width="231px"></asp:Label><br />
                                否决理由：<asp:Label ID="denyReason" runat="server" Width="229px"></asp:Label></asp:Panel>
                            <asp:Panel ID="Panel1" runat="server" Height="50px" Width="125px">
                                &nbsp;<asp:Label ID="lblMessage" runat="server" Width="231px" ForeColor="Red"></asp:Label>
                                <asp:GridView ID="grdResult" runat="server" AutoGenerateColumns="False" CellPadding="4"
                                    ForeColor="#333333" GridLines="None" Width="608px" OnRowCommand="grdResult_RowCommand" OnSelectedIndexChanged="grdResult_SelectedIndexChanged">
                                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                    <Columns>
                                        <asp:BoundField HeaderText="开始时间" DataField="StartTime" />
                                        <asp:BoundField HeaderText="结束时间" DataField="EndTime" />
                                        <asp:BoundField HeaderText="提交时间" DataField="SubmitTime" />
                                        <asp:BoundField HeaderText="状态" DataField="Status" />
                                        <asp:BoundField HeaderText="小时数" DataField="Hours" />
                                        <asp:ButtonField CommandName="Select" HeaderText="详细情况" Text="详细情况……" />
                                    </Columns>
                                    <RowStyle BackColor="#EFF3FB" />
                                    <EditRowStyle BackColor="#2461BF" />
                                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                    <AlternatingRowStyle BackColor="White" />
                                </asp:GridView>
                            </asp:Panel>
                        </td>
                    </tr>
                </table>
            </span></span>
    
    </div>
</asp:Content>